package com.example.event_resource_java.authority.dao;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 资源库前台权限表
 * </p>
 *
 * @author author
 * @since 2024-09-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("jz_permission")
@ApiModel(value="JzPermission对象", description="资源库前台权限表")
public class JzPermission implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "使用人id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建人")
    @TableField("create_id")
    private Long createId;

    @ApiModelProperty(value = "更新人")
    @TableField("update_id")
    private Long updateId;

    @ApiModelProperty(value = "资源id")
    @TableField("allocation_id")
    private Long allocationId;

    @ApiModelProperty(value = "0赛项规程 1在线联系")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "0中职组 1高校组 2教师组 3国际组 4综合 5通用")
    @TableField("group_type")
    private String groupType;


}
